package com.dx.common.table.ppt;

/**
 * AbstractBis_pm_itemId entity provides the base persistence definition of the
 * Bis_pm_itemId entity. @author MyEclipse Persistence Tools
 */

public class Ret_tool_infoId implements java.io.Serializable {

	// Fields

	private String tool_id_fk;
	private String sub_tool_id_fk;
	private String point_name;

	// Constructors

	/** default constructor */
	public Ret_tool_infoId() {
	}


	public Ret_tool_infoId(String tool_id_fk, String sub_tool_id_fk, String point_name) {
		this.tool_id_fk = tool_id_fk;
		this.sub_tool_id_fk = sub_tool_id_fk;
		this.point_name = point_name;
	}

	/** full constructor */


	// Property accessors


	public String getTool_id_fk() {
		return tool_id_fk;
	}

	public void setTool_id_fk(String tool_id_fk) {
		this.tool_id_fk = tool_id_fk;
	}

	public String getSub_tool_id_fk() {
		return sub_tool_id_fk;
	}

	public void setSub_tool_id_fk(String sub_tool_id_fk) {
		this.sub_tool_id_fk = sub_tool_id_fk;
	}

	public String getPoint_name() {
		return point_name;
	}

	public void setPoint_name(String point_name) {
		this.point_name = point_name;
	}

	@Override
	public boolean equals(Object o) {
		if (this == o) return true;
		if (o == null || getClass() != o.getClass()) return false;

		Ret_tool_infoId that = (Ret_tool_infoId) o;

		if (tool_id_fk != null ? !tool_id_fk.equals(that.tool_id_fk) : that.tool_id_fk != null) return false;
		if (sub_tool_id_fk != null ? !sub_tool_id_fk.equals(that.sub_tool_id_fk) : that.sub_tool_id_fk != null)
			return false;
		return point_name != null ? point_name.equals(that.point_name) : that.point_name == null;
	}

	@Override
	public int hashCode() {
		int result = tool_id_fk != null ? tool_id_fk.hashCode() : 0;
		result = 31 * result + (sub_tool_id_fk != null ? sub_tool_id_fk.hashCode() : 0);
		result = 31 * result + (point_name != null ? point_name.hashCode() : 0);
		return result;
	}
}